package component;

import java.awt.event.KeyEvent;
import javax.swing.JMenu;
import javax.swing.JMenuBar;

public class MyMenuBar extends JMenuBar {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public MyButton btndangnhap;
	public MyMenuBar() {
		JMenu menuFile=new JMenu("File");
		menuFile.setMnemonic(KeyEvent.VK_F);
		JMenu menuEdit=new JMenu("Edit");
		menuEdit.setMnemonic(KeyEvent.VK_E);
		JMenu menuView=new JMenu("View");
		menuView.setMnemonic(KeyEvent.VK_V);
		
		btndangnhap=new MyButton("Đăng Nhập","agt-login-icon.png");
		menuFile.add(btndangnhap);
		this.add(menuFile);
		this.add(menuEdit);
		this.add(menuView);
	}
}
